import api from '@/utils/api'

export function getInfo(params) {
  return api({
    url: '/api/user/info',
    method: 'get',
    params: params
  })
}

export function login(data){
  return api({
    url: '/api/user/login',
    method: 'post',
    data: data
  })
}
export function logout(data){
  return api({
    url: '/api/user/logout',
    method: 'post',
    data: data
  })
}


